from flask import Flask, make_response
from flask_restful import Resource, Api, reqparse

app = Flask(__name__)

api = Api(app)


@api.representation('text/html')
def output(data, code, headers):
    resp = make_response(data)
    return resp


class LoginView(Resource):
    def get(self):
        return "<h1>thsi is sunday</h1>"


api.add_resource(LoginView, '/list/')

if __name__ == '__main__':
    app.run()
